

/* this ALWAYS GENERATED file contains the definitions for the interfaces */


 /* File created by MIDL compiler version 7.00.0555 */
/* at Thu Nov 21 20:48:42 2013
 */
/* Compiler settings for DataInterfaceTypeInfo.idl:
    Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 7.00.0555 
    protocol : dce , ms_ext, c_ext, robust
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
/* @@MIDL_FILE_HEADING(  ) */

#pragma warning( disable: 4049 )  /* more than 64k source lines */


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __DataInterfaceTypeInfo_h_h__
#define __DataInterfaceTypeInfo_h_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */ 

#ifndef __IDataInterface_FWD_DEFINED__
#define __IDataInterface_FWD_DEFINED__
typedef interface IDataInterface IDataInterface;
#endif 	/* __IDataInterface_FWD_DEFINED__ */


#ifndef __DataInterface_FWD_DEFINED__
#define __DataInterface_FWD_DEFINED__

#ifdef __cplusplus
typedef class DataInterface DataInterface;
#else
typedef struct DataInterface DataInterface;
#endif /* __cplusplus */

#endif 	/* __DataInterface_FWD_DEFINED__ */


/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"

#ifdef __cplusplus
extern "C"{
#endif 


/* interface __MIDL_itf_DataInterfaceTypeInfo_0000_0000 */
/* [local] */ 

typedef /* [public][public][public][public][public] */ 
enum __MIDL___MIDL_itf_DataInterfaceTypeInfo_0000_0000_0001
    {	ReadOnly	= 0,
	WriteOnly	= 1,
	ReadWrite	= 2
    } 	tag_opc_access_t;

typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_DataInterfaceTypeInfo_0000_0000_0002
    {
    unsigned int tag_id;
    tag_opc_access_t opc_access;
    VARTYPE vt;
    wchar_t *opc_path;
    } 	tag_config_t;

typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_DataInterfaceTypeInfo_0000_0000_0003
    {
    unsigned int tag_id;
    VARIANT value;
    } 	tag_value_t;

typedef /* [public] */ struct __MIDL___MIDL_itf_DataInterfaceTypeInfo_0000_0000_0004
    {
    VARIANT value;
    FILETIME timestamp;
    WORD quality;
    tag_opc_access_t opc_access;
    } 	tag_state_t;



extern RPC_IF_HANDLE __MIDL_itf_DataInterfaceTypeInfo_0000_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_DataInterfaceTypeInfo_0000_0000_v0_0_s_ifspec;

#ifndef __IDataInterface_INTERFACE_DEFINED__
#define __IDataInterface_INTERFACE_DEFINED__

/* interface IDataInterface */
/* [helpstring][uuid][object] */ 


EXTERN_C const IID IID_IDataInterface;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("CC954A72-57C9-4edc-BCE5-A3D360FAAE82")
    IDataInterface : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE Configure( 
            /* [in] */ long configuration_size,
            /* [size_is][in] */ tag_config_t configuration[  ]) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE AddTag( 
            /* [in] */ tag_config_t configuration,
            /* [in] */ BOOL last_tag) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE Write( 
            /* [in] */ long value_count,
            /* [size_is][in] */ tag_value_t values[  ]) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE Read( 
            /* [in] */ unsigned int value_count,
            /* [size_is][out][in] */ tag_value_t values[  ]) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IDataInterfaceVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IDataInterface * This,
            /* [in] */ REFIID riid,
            /* [annotation][iid_is][out] */ 
            __RPC__deref_out  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IDataInterface * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IDataInterface * This);
        
        HRESULT ( STDMETHODCALLTYPE *Configure )( 
            IDataInterface * This,
            /* [in] */ long configuration_size,
            /* [size_is][in] */ tag_config_t configuration[  ]);
        
        HRESULT ( STDMETHODCALLTYPE *AddTag )( 
            IDataInterface * This,
            /* [in] */ tag_config_t configuration,
            /* [in] */ BOOL last_tag);
        
        HRESULT ( STDMETHODCALLTYPE *Write )( 
            IDataInterface * This,
            /* [in] */ long value_count,
            /* [size_is][in] */ tag_value_t values[  ]);
        
        HRESULT ( STDMETHODCALLTYPE *Read )( 
            IDataInterface * This,
            /* [in] */ unsigned int value_count,
            /* [size_is][out][in] */ tag_value_t values[  ]);
        
        END_INTERFACE
    } IDataInterfaceVtbl;

    interface IDataInterface
    {
        CONST_VTBL struct IDataInterfaceVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IDataInterface_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define IDataInterface_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define IDataInterface_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define IDataInterface_Configure(This,configuration_size,configuration)	\
    ( (This)->lpVtbl -> Configure(This,configuration_size,configuration) ) 

#define IDataInterface_AddTag(This,configuration,last_tag)	\
    ( (This)->lpVtbl -> AddTag(This,configuration,last_tag) ) 

#define IDataInterface_Write(This,value_count,values)	\
    ( (This)->lpVtbl -> Write(This,value_count,values) ) 

#define IDataInterface_Read(This,value_count,values)	\
    ( (This)->lpVtbl -> Read(This,value_count,values) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __IDataInterface_INTERFACE_DEFINED__ */



#ifndef __DataInterfaceServerLib_LIBRARY_DEFINED__
#define __DataInterfaceServerLib_LIBRARY_DEFINED__

/* library DataInterfaceServerLib */
/* [helpstring][version][uuid] */ 


EXTERN_C const IID LIBID_DataInterfaceServerLib;

EXTERN_C const CLSID CLSID_DataInterface;

#ifdef __cplusplus

class DECLSPEC_UUID("062AE33F-D520-4d4e-9081-A9B10BCED25E")
DataInterface;
#endif
#endif /* __DataInterfaceServerLib_LIBRARY_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

unsigned long             __RPC_USER  VARIANT_UserSize(     unsigned long *, unsigned long            , VARIANT * ); 
unsigned char * __RPC_USER  VARIANT_UserMarshal(  unsigned long *, unsigned char *, VARIANT * ); 
unsigned char * __RPC_USER  VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); 
void                      __RPC_USER  VARIANT_UserFree(     unsigned long *, VARIANT * ); 

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif


